package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.LsthdProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface LsthdProductService extends BaseService<LsthdProductBean> {

	LsthdProductBean getLsthdProductBeanById(String id) throws Exception;
	
	void removeLsthdProductBeanById(String id) throws Exception;
	
	void removeLsthdProductBeanByIds(String ids) throws Exception;
	
	LsthdProductBean saveLsthdProductBean(LsthdProductBean crm) throws Exception;
	
	LsthdProductBean updateLsthdProductBean(LsthdProductBean crm) throws Exception;
	
	Page<LsthdProductBean>  findLsthdProductBeanByCond(LsthdProductBean bean,
			Page<LsthdProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveLsthdProductBeanExt(String sql) throws Exception;

	String findLsthdProductBeanExtCreate(String tableName) throws Exception;

	String findLsthdProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findLsthdProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasLsthdProductBeanExtData(String tableName, String id)
			throws Exception;
}